package com.sysware.jdkevent;

public class Test {

	public static void main(String[] args) {
		Source source = new Source();
		source.addStateChangeListener(new StateChangeListener());
		source.addStateChangeToOneListener(new StateChangeToOneListener());

		source.changeFlag();
		System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
		source.changeFlag();
		System.out.println("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
		source.changeFlag();
	}

}
